home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1814 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: Raw key -> Vanilla key
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <DLn2LH.EI3@unx.sas.com>
  8. Date: Tue, 23 Jan 1996 14:51:17 GMT
  9. X-Nntp-Posting-Host: cdevil.unx.sas.com
  10. References: <590.6593T272T2384@norconnect.no> <4e08mn$bf0@news.ox.ac.uk>
  11. Organization: SAS Institute Inc.
  12.  
  13.  
  14. In article <4e08mn$bf0@news.ox.ac.uk>, Nick Christie <nick.christie@oucs.ox.ac.uk> writes:
  15. >kenneth@norconnect.no (Kenneth C. Nilsen) wrote:
  16. >>Does someone know how to convert a rawkey to vanilla key (OS friendly).
  17. >
  18. >I don't know if this is entirely applicable to your situation but
  19. >if you specify both IDCMP_VANILLAKEYS and IDCMP_RAWKEYS for your
  20. >window, you will get vanillakey msgs for those keys that can be
  21. >encoded that way (eg A-Z, 0-9, etc) and rawkey msgs for other keys
  22. >(eg. HELP, CrsrUp, etc). This is true for V37+ of the OS.
  23.  
  24. Absolutely correct, and it works at least as far back as V33 of the OS,
  25. possibly further.
  26.  
  27. >If you can only get rawkeys, you have to use that function
  28. >in the console device, I think.
  29.  
  30. The function is RawKeyConvert(), but it only does part of the work.  For
  31. a complete description of the proper method, see the 'rawkey.c' example
  32. in the 3rd Edition RKM: Libraries, page 277.
  33. -- 
  34. ---------------
  35. Jim Cooper
  36. (jamie@unx.sas.com)                             bix: jcooper
  37.  
  38. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  39. and not necessarily those of my employer.
  40.  
  41. I'm NOT Politically Correct, but that's because I'm "Sensitivity Challenged."
  42.